
package br.com.jk.endereco;

import br.com.jk.util.DaoFactory;
import java.util.List;

/**
 *
 * @author camilo
 */
public class EnderecoRn {
  private EnderecoDao endDao;
  
  public EnderecoRn(){
    this.endDao = DaoFactory.criarEnderecoDao();
  }
  
  public void salvar(Endereco e){
    this.endDao.salvar(e);
  }
  
  public List<Endereco> listar(){
    return this.endDao.listar();
  }
  
  public Endereco carregar(int id){
    return this.endDao.carregar(id);
  }
  
  public void excluir(Endereco e){
    this.endDao.excluir(e);
  }
}
